package com.xianyu.open.restclient.exception;

import org.springframework.http.ResponseEntity;

import java.io.Serializable;

/**
 *
 * @author bailinan
 * @date 2018/7/22
 */
public class RestClientExceptionModel implements Serializable {
    /**
     * 地址
     */
    private String url;

    /**
     * 返回体
     */
    private ResponseEntity responseEntity;

    /**
     * 原生异常
     */
    private Exception relException;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }


    public ResponseEntity getResponseEntity() {
        return responseEntity;
    }

    public void setResponseEntity(ResponseEntity responseEntity) {
        this.responseEntity = responseEntity;
    }

    public Exception getRelException() {
        return relException;
    }

    public void setRelException(Exception relException) {
        this.relException = relException;
    }

    @Override
    public String toString() {
        return "RestClientExceptionModel{" +
                "url='" + url + '\'' +
                ", responseEntity=" + responseEntity +
                ", relException=" + relException +
                '}';
    }
}
